package com.zzc.interview.judge.codesandbox.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 前端提交的数据，
 * const form = ref<QuestionSubmitAddRequest>({
 *   language: "java",
 *   code: "",
 * });
 * 还有一个语言language在表单中
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ExecuteCodeRequest {
    /**
     * 输入用例
      */
    private List<String> inputList;
    /**
     * 提交代码
     */
    private String code;
    /**
     * 语言
     */
    private String language;
    /**
     * 内存限制
     */
    private Long memoryLimit;
}
